\begin{table}[!h]
\centering
\caption{Effect of Government Affiliation on Racism and Violence Framing over Ethnicity\label{tab:ethnicityreg}}
\centering
\resizebox{\ifdim\width>\linewidth\linewidth\else\width\fi}{!}{
\begin{threeparttable}
\begin{tabular}[t]{lllllll}
\toprule
\multicolumn{1}{c}{\em{ }} & \multicolumn{6}{c}{\em{Similarity (\%)}} \\
\multicolumn{1}{c}{ } & \multicolumn{3}{c}{Racism} & \multicolumn{3}{c}{Violence} \\
\cmidrule(l{3pt}r{3pt}){2-4} \cmidrule(l{3pt}r{3pt}){5-7}
  & Diaspora (1) & White (2) & Black (3) & Diaspora (4) & White (5) & Black (6)\\
\midrule
Government & 3.64*** & 1.02 & -0.71 & 1.83** & 0.41 & -0.93\\
 & (0.87) & (1.60) & (1.33) & (0.77) & (0.83) & (1.08)\\
ln Frequency 1 & -2.82*** & -5.30*** & -3.15*** & -3.29*** & -5.73*** & -4.41***\\
 & (0.41) & (1.09) & (0.64) & (0.24) & (0.59) & (0.38)\\
ln Frequency 2 & -1.18*** & -0.66 & -3.14*** & -1.96*** & -1.66* & -3.03***\\
 & (0.25) & (1.06) & (0.89) & (0.37) & (0.93) & (0.77)\\
\midrule
\addlinespace[]
\multicolumn{7}{l}{\textit{Statistics}}\\
\hspace{1em}Observations & 489 & 196 & 286 & 963 & 386 & 567\\
\addlinespace[]
\multicolumn{7}{l}{\textit{Fixed effects}}\\
\hspace{1em}Dictionary FE & Yes & Yes & Yes & Yes & Yes & Yes\\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item Notes: $^{*}$p$<$0.1; $^{**}$p$<$0.05; $^{***}$p$<$0.01 White robust standard-errors are clustered on the attribute dictionary. Dependent variable is cosine similarity between respective object and attribute dictionaries. Controls for dictionary frequency are shown. Unit of analysis is the object-attribute word pair, which varies according to the object and attribute dictionary size.
\end{tablenotes}
\end{threeparttable}}
\end{table}
